package org.example.service.domain.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.domain.entity.SysPermission;
import org.example.service.domain.SysPermissionService;
import org.example.mapper.SysPermissionMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
* @author YINDINGJIE
* @description 针对表【sys_permission(系统权限表)】的数据库操作Service实现
* @createDate 2023-11-29 13:55:49
*/
@Service
public class SysPermissionServiceImpl extends ServiceImpl<SysPermissionMapper, SysPermission>
    implements SysPermissionService{
    @Resource
    private SysPermissionMapper sysPermissionMapper;

    @Override
    public List<SysPermission> selectPermissionByUserId(Long userId) {
        return sysPermissionMapper.selectPermissionByUserId(userId);
    }
}




